package com.algorithms.string;

/**
 * @author itjunjun  2021/9/15 16:28
 */
public class Solution344 {

    public void reverseString(char[] s) {
        char temp;
        for (int i = 0; i < s.length / 2; i++) {
            temp = s[i];
            s[i] = s[s.length - 1 - i];
            s[s.length - 1 - i] = temp;
        }
    }
}
